#
# Be sure to run `pod lib lint CarNetwork.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'GeelyLynkcoCarNetwork'
  s.version          = '0.1.15'
  s.summary          = '消费者APP组件模块-车联网'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'http://git.evun.cn/LYNKCO-APP'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'zhiyong0906' => '9851717@qq.com' }
  
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
  
  s.ios.deployment_target = '9.0'
  s.static_framework = true
  s.ios.frameworks = 'UIKit','Foundation'

  #s.vendored_frameworks = 'GeelyLynkcoCarNetwork/LibrariesVender/Frameworks/**/*.framework'
  #s.vendored_libraries = 'GeelyLynkcoCarNetwork/LibrariesVender/Other/**/*.a'
  
  
#  s.resource_bundles = {
#     'GeelyLynkcoCarNetwork' => ['GeelyLynkcoCarNetwork/Assets/**/*.{gif,jpg,png,mp3,mp4,lproj,plist,json,bundle,xcassets,xib,storyboard}','CarNetwork/Classes/**/*.{gif,jpg,png,mp3,mp4,lproj,plist,json,bundle,xcassets,xib,storyboard}']
#  }
#  if ENV['mode'].to_s.include? "GeelyLynkcoCarNetwork"
      #使用zip成果物模式
      puts "GeelyLynkcoCarNetwork成果物模式集成".blue
      s.source           = { :http => 'https://geely-admp-oss.oss-cn-hangzhou.aliyuncs.com/sweet-app-release/ios/GeelyLynkcoCarNetwork.framework-0.1.15.zip' }
      s.ios.vendored_framework   = 'GeelyLynkcoCarNetwork.framework'
      s.source_files = 'GeelyLynkcoCarNetwork.framework/**/*.h'
      s.public_header_files = 'GeelyLynkcoCarNetwork.framework/**/*.h'
      s.prefix_header_file = 'GeelyLynkcoCarNetwork.framework/**/PrefixHeader.pch'
      #if static_framework = true
      s.resources = ['GeelyLynkcoCarNetwork.framework/Versions/A/Resources/*.{zip,bundle,xcassets}','GeelyLynkcoCarNetwork.framework/Versions/A/Resources/*.{gif,jpg,png,mp3,mp4,xml,rtf,txt,emo,lproj,plist,json,xib,storyboard}']
#  else
#      #目前默认源码集成
#      puts "GeelyLynkcoCarNetwork源码模式集成".yellow
#      s.source           = { :git => 'https://gitlab.geely.com/p-internet-marketing/lynkco-app/ios-geelylynkcocarnetwork.git', :tag => s.version.to_s }
#      s.source_files = ['GeelyLynkcoCarNetwork/Classes/**/*.{h,m,mm,pch}','GeelyLynkcoCarNetwork/LibrariesVender/Other/**/*.{h,m,mm,pch}']
#      s.resources = ['GeelyLynkcoCarNetwork/Assets/*.{zip,bundle,xcassets}','GeelyLynkcoCarNetwork/Assets/GLVehicleHomePage','GeelyLynkcoCarNetwork/Classes/**/*.{gif,jpg,png,mp3,mp4,xml,rtf,txt,emo,lproj,plist,json,xib,storyboard}','GeelyConsumerCarNetwork/LibrariesVender/Bundles/*.{bundle,xcassets}']
#      s.prefix_header_file = 'GeelyLynkcoCarNetwork/Classes/PrefixHeader.pch'
#  end

  s.dependency 'GeelyLynkcoCore'
  s.dependency 'GeelyLynkcoMain'
#  s.dependency 'GeelyConsumerThird'
  s.dependency 'MBProgressHUD'
  s.dependency 'SDWebImage'
  #s.dependency 'lottie-ios'      ,'2.5.3'
  s.dependency 'GLLogSDK', '0.1.6'
  s.dependency 'PulsingHalo', '~> 0.2.8'
  s.dependency 'UIImage+ImageWithColor'
  s.dependency 'MMPopupView'
  s.dependency 'GLTheme'
  s.dependency 'GLServiceSDK', '1.2.0'
  s.dependency 'ExDigitalKeySDK'
  
  s.dependency 'ReactiveObjC'
  #为了使该库为动态库，下面依赖放到实现工程中集成
  s.dependency 'AMapNavi-NO-IDFA'
  s.dependency 'AMapSearch-NO-IDFA'
  s.dependency 'AMapLocation-NO-IDFA'
  s.dependency 'JPush'
  s.dependency 'AlicloudPush'
  s.dependency 'SDCycleScrollView'
  s.dependency 'SGPagingView'
  s.dependency 'TZImagePickerController'
  s.dependency 'GLMVVMKit'
  s.dependency 'LYVehicleShareModule', '0.2.8'
  s.dependency 'IQKeyboardManager'
  s.dependency 'SweetCordovaKit'
  s.dependency 'SSZipArchive'
  s.dependency 'HybridImplementKit'
  
  s.pod_target_xcconfig = {
    'OTHER_LDFLAGS' => '-ObjC',
    'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES',
    'VALID_ARCHS' => 'armv7 arm64 x86_64' #pod package是注释掉
  }
end
